//
// Created on 2024/4/30.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef DIANPING_CAPI_DEMO_WATERFLOWMODEL_H
#define DIANPING_CAPI_DEMO_WATERFLOWMODEL_H
#include "Model/FlowItemViewModel.h"
#include "common/Size.h"

class WaterFlowViewModel : public ViewModel{
private:
    std::string columnTemplate;
    bool m_hasRefreshNode;
public:
    WaterFlowViewModel():ViewModel(WATER_FLOW_VIEW_MODEL){
        columnTemplate = "1fr 1fr";
        m_hasRefreshNode = true;
        
    }
    void setColumnTemplate(std::string temp) {
        columnTemplate = temp;
    }
    std::string getColumnTemplate(){return columnTemplate;}
    bool hasRefreshNode(){return m_hasRefreshNode;}
    
};

#endif //DIANPING_CAPI_DEMO_WATERFLOWMODEL_H
